dayup = 1.0
a = 'i'
temp = 0
state = 'i'
for i in range(365):
    if state == a and (temp in [0,1,2]):
        dayup = dayup * 1
        temp = (temp + 1)%7
    elif state == a and (temp in [3,4,5,6]):
        dayup = dayup * 1.01
        temp = (temp + 1)%7
    elif state == unstudy:
        temp = 0
print("连续学习365天后能力值为{:.2f}".format(dayup))
